package StudyCode.summary.Basic.stringbuffer;

import java.util.Arrays;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringBufferToByteArray {
	public static void main(String[] args) {
		StringBuffer sb = new StringBuffer("Hello World");
		byte bytes[] = sb.toString().getBytes();
		System.out.println("StringBuffer to byte array:");
		System.out.println(Arrays.toString(bytes));
	}
}
